from typing import Type

from beanie import Document

from fastapi_template.common.db import init_db

from .base import BaseModel
from .permission import Permission
from .role import Role
from .user import User

__all__ = [
    "BaseModel",
    "User",
    "Role",
    "Permission",
]


async def init_models():
    models: list[Type[Document]] = []
    await init_db(models)
